.intranet_home_icon {
	background: url(/assets/images/<?php echo $this->sPlatform; ?>/intranet/home_icons.gif) 0px 0px no-repeat;
	width: 112px;
	height: 112px;
	margin-top: 15px;
	margin-right: 15px;
	float: left;
	cursor: pointer;
}

.intranet_home_icon div {
	width: 100px;
	margin: 80px auto 0px;
	font-weight: bold;
	color: #CA0000;
	text-align: center;
}

<?php

$iIntranetIcons = $qIntranetIcons->num_rows();

for ($i = 0; $i < $iIntranetIcons; $i++) 
{
	?>
	#intranet_home_icon_<?php echo $qIntranetIcons->row($i)->page_id; ?> {
		background-position: <?php echo $qIntranetIcons->row($i)->icon_pos; ?>;
	}
	<?php	
}

?>